package com.choichumgming.rentcat.service;

import com.choichumgming.rentcat.common.api.CommonResult;
import com.choichumgming.rentcat.service.impl.OmsOrderFeignApiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName OmsOrderFeignApi
 * @Description : oms服务暴露的api接口服务
 *
 * @Author : choichumgming
 * @Date : 27/2/2020 21:46
*/

@FeignClient(value = "rentcat-provider-oms", fallback = OmsOrderFeignApiHystrix.class)
public interface OmsOrderFeignApi {


    /**
     * @Description : 更新订单状态
     *
     * @Return :
     * @Author : choichumgming
     * @Date : 5/3/2020 00:13
    */
    @RequestMapping(value = "/api/update/status")
    CommonResult updateOrderStatus(@RequestParam("orderId") Long orderId, @RequestParam("status") int status);


}
